<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>06_DOM操作2</title>
</head>
<body>
    <input type="text" id="i1">
    <input type="text" id="i2">
    <button onclick="f1()">点我查看</button>
    <hr>
    <h4>我是标题:<span id="ss"></span></h4>
    <button onclick="f2()">按钮</button>
    <script>
        function f1(){

            let inputE=document.querySelector('#i1');
            console.log(inputE);
            let inputE2=document.querySelector('#i2').value;
            console.log(inputE2);
            inputE2=parseFloat(inputE2);
            console.log(inputE2)

        }
        function f2(){
            // let span=document.querySelector('span')
            // let span=document.querySelector('#ss')
            let span=document.getElementById('ss')
            console.log(span)
            span.innerHTML='我是内容'
        }
    </script>
</body>
</html>